//
//  WLTelecomProductCell.m
//  WanLian
//
//  Created by muzhuang on 2018/10/11.
//  Copyright © 2018年 wanlian. All rights reserved.
//

#import "WLTelecomProductCell.h"

@implementation WLTelecomProductCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = wlUIColorRGB(0xFAFAFA);
        _ivHead = [[UIImageView alloc] initWithFrame:CGRectMake(WLScaleX(16), WLScaleX(16), WLScaleX(64), WLScaleX(64))];
        [self.contentView addSubview:_ivHead];
        
        _labTitle = [[UILabel alloc] initWithFrame:CGRectMake(WLScaleX(96), WLScaleX(21), WIDTH_SCREEN_WL-WLScaleX(112), WLScaleX(30))];
        _labTitle.font = [WLCommonTool fontTypePingFangSCMedium:17];
        _labTitle.textColor = wlBlackColor;
        [self.contentView addSubview:_labTitle];
        
        _labScore = [[UILabel alloc] initWithFrame:CGRectMake(WLScaleX(96), WLScaleX(50), 120, WLScaleX(20))];
        _labScore.font = [WLCommonTool fontTypePingFangSCMedium:14];
        _labScore.textColor = wlGreenColor;
        [self.contentView addSubview:_labScore];
        
        _btnExchange = [[UIButton alloc] initWithFrame:CGRectMake(WIDTH_SCREEN_WL-WLScaleX(96), WLScaleX(45), WLScaleX(80), WLScaleX(30))];
        _btnExchange.backgroundColor = wlblueColor;
        _btnExchange.titleLabel.font = [WLCommonTool fontTypePingFangSCMedium:12];
        [_btnExchange setTitle:@"立即兑换" forState:UIControlStateNormal];
        [self.contentView addSubview:_btnExchange];
        _btnExchange.layer.cornerRadius = 5;
        _btnExchange.layer.masksToBounds = YES;
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
